import java.util.Arrays;
import java.util.Scanner;

class WashMachine{
    //洗衣机的属性
    public String brand; //品牌
    public String color; //颜色
    public String type; //型号
    public String weight; //重量
    public String length; //长
    public String width; //宽
    public String heigth;  //高

    //洗衣机的功能
    public void washClothes(){
        System.out.println(brand+" 洗衣服");
    }
    public void dryClothes(){
        System.out.println(brand+" 烘干衣服");
    }
}
public class Text {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            while (scanner.hasNextInt()) {
                int x = scanner.nextInt();
                int y = scanner.nextInt();
                Data data = new Data(x, y);
                System.out.println(data.getX() + data.getY());
            }
        }

    }

    class Data {

        public int x;
        public int y;

        public Data(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int getX() {
            return x;
        }

        public int getY() {
            return y;
        }



    public static void main4(String[] args) {
        WashMachine washMachine = new WashMachine();
        washMachine.brand = "haiEr";
        washMachine.color = "Yellow";
        System.out.println(washMachine.brand+" "+washMachine.color);
        washMachine.washClothes();
        washMachine.dryClothes();

    }

    //不规则二维数组
    public static void main3(String[] args) {
        int[][] arr = new int[3][];
        arr[0] = new int[]{1,2,3,4,5};
        arr[1] = new int[]{2,3,4};
        arr[2] = new int[]{7,3,2,1,3,5,6};
        System.out.println(Arrays.deepToString(arr));
    }

    //二维数组
    public static void main2(String[] args) {
        int[][] arr = new int[][]{{1,2,3},{4,5,6}};
        //或者
        int[][] arr1 = {{1,2,3},{2,3,4}};
        int i = 0;
        int j = 0;
        //遍历二维数组
        for (i = 0; i < 2; i++) {
            for (j = 0; j < 3; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
        System.out.println("#####################");
        for ( i = 0; i < arr.length; i++) {
            for (j = 0; j < arr[0].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
        System.out.println("########################");
        for(int[] ret : arr){
            for(int x : ret){
                System.out.print(x+" ");
            }
            System.out.println();
        }
        System.out.println("###########################");
        System.out.println(Arrays.deepToString(arr));
        System.out.println(arr);
    }

    //数组逆序
    public static void reverse(int[] arr){
        int left = 0;
        int right = arr.length - 1;
        int temp = 0;
        while(left < right){
            temp = arr[left];
            arr[left] = arr[right];
            arr[right] = temp;
            left++;
            right--;
        }
    }
    public static void main1(String[] args) {
        int[] arr = {1,2,3,4,5,6};
        reverse(arr);
        System.out.println(Arrays.toString(arr));
    }

}
